package com.haixiaoke.saas.manage.department.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import com.haixiaoke.saas.common.annotation.Log;
import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.common.core.page.TableDataInfo;
import com.haixiaoke.saas.common.enums.BusinessType;
import com.haixiaoke.saas.common.utils.poi.ExcelUtil;
import com.haixiaoke.saas.department.domain.ElectronicVisaRecord;
import com.haixiaoke.saas.department.service.IElectronicVisaRecordService;
import com.haixiaoke.saas.system.BaseController;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 企业电子合同数量操作记录Controller
 * 
 * @author panda
 * @date 2024-05-29
 */
@RestController
@RequestMapping("/manage/department/electronicVisaRecord")
public class ManageElectronicVisaRecordController extends BaseController {
    @Autowired
    private IElectronicVisaRecordService electronicVisaRecordService;

    /**
     * 查询企业电子合同数量操作记录列表
     */
    @PreAuthorize("@ss.hasPermi('manage:electronicVisa:list')")
    @GetMapping("/list")
    public TableDataInfo list(ElectronicVisaRecord electronicVisaRecord) {
        startPage();
        List<ElectronicVisaRecord> list = electronicVisaRecordService.selectElectronicVisaRecordList(electronicVisaRecord);
        return getDataTable(list);
    }
}
